package com.lh.music.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import com.lh.music.R;

public class TestActivity extends BaseActivity {
    private Button button;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_test2);
        //hidden();
        button= (Button) findViewById(R.id.test);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(TestActivity.this, "按钮被安吉了", Toast.LENGTH_SHORT).show();
                mFloatView.findViewById(R.id.tv).setVisibility(View.GONE);
            }
        });
    }

    @Override
    public View getChildContentView() {

        return getLayoutInflater().inflate(R.layout.activity_test2,null);
    }
}
